package com.wanlian.service.impl;
import com.wanlian.common.PageCondition;
import com.wanlian.dao.BlackListDao;
import com.wanlian.dao.DeviceDao;
import com.wanlian.dao.InviteDao;
import com.wanlian.entity.BlackList;
import com.wanlian.entity.Device;
import com.wanlian.entity.Invite;
import com.wanlian.model.ResultModel;
import com.wanlian.service.BlackListServices;
import com.wanlian.service.InvitetServices;
import com.wanlian.util.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class InviteServicesImpl implements InvitetServices {


    @Autowired
    public InviteDao inviteDao;



    @Override
    public void doAdd(Invite invite) {
            inviteDao.add(invite);
    }


    @Override
    public ResultModel queryInviteList(int userId) {
        return inviteDao.queryInviteList(userId);
    }
}
